Added bible books json file that enumerates the books available in a translation #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using a C# console app I wrote just for this, I was able to create simple JSON files for each translation; a list of books, each of which is a combination of the name (string) and amount of chapters (integer). These books are listed in no particular order, or way of knowing which bible book it is, as the bible books in the JSON files don't have indexes to compare between translations. So for example, I can set Genesis as "1" since most translations don't have Genesis to begin with and there is no way of knowing which Bible book is which between translations.
The app works as follows: just start it up with the first parameter being the folder where the bibles are stored, so for example folder "C:/{path_to_git_repo}/bible-api/bibles". It will make JSON files for all Bibles, completes within 25 seconds. In the event a bible translation doesn't contain any books (which happens for some reason) an empty array is the output in the JSON file.